package net.muchine.test.spring.data.tutorial.domain;

import org.springframework.data.annotation.Id;

public class User {
	@Id
	private String username;
	private String password;
	
	private Address homeAddress;
	
	public User(String username, String password) {
		this.username = username;
		this.password = password;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public Address getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(Address homeAddress) {
		this.homeAddress = homeAddress;
	}

	@Override
	public String toString() {
		return "User [" +
				"username=" + this.username + 
				", password=" + this.password + 
				", homeAddress=" + this.homeAddress.toString() +
			"]";
	}
}
